package kr.co.doriclassic.pro05_02;

public class Divide {
	int iNum1;
	int iNum2;
	int iResd;
	int iResp;
	
	public Divide(int iNum1, int iNum2){
		this.iNum1 = iNum1;
		this.iNum2 = iNum2;
	}
	
	public void pDivide(){
		iResd=iNum2/iNum1;
		iResp=iNum2%iNum1;
		System.out.println(iNum1+"을 "+iNum2+"으로 나눈 몫은 "+iResd+"이고 나머지는 "+iResp+"이다.");
	}
}
